# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper

  def main_menu_item(name, options)
    content_tag "li", link_to_unless_current(name, options), :class => ("active" if current_page?(options))
  end
  
  def error_flash_div
    content_tag "div", flash[:error], :class => 'error' unless flash[:error].blank?
  end
end
